<template>
  <div class="listTable">
    <div ref="vv" class="listTableHeader">
      <div v-for="(item,index) in title" :key="index" style="flex-basis:200px">{{item.label}}</div>
    </div>
    <div class="listTableBody">
      <div v-for="(items,indexs) in data" :key="indexs">{{items.data}}</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineProps, onMounted, ref } from 'vue'
const props = defineProps({
  data: {
    type: Array,
    default: () => []
  },
  title: {
    type: Array,
    default: () => Array
  }
})
</script>

<style scoped lang="scss">
.listTable {
  .listTableHeader {
    display: flex;
    justify-content: space-between;
  }
  .listTableBody {
    display: flex;
    justify-content: space-between;
  }
}
</style>